namespace aichat.Services
{
    public interface IAiApiService
    {
        /// <summary>
        /// 流式调用AI API
        /// </summary>
        /// <param name="message">用户消息</param>
        /// <param name="modelName">AI模型名称</param>
        /// <param name="progress">进度回调</param>
        /// <returns>完整的AI响应</returns>
        Task<string> GetStreamingResponseAsync(string message, string modelName, IProgress<string> progress);
        
        /// <summary>
        /// 检查API配置是否有效
        /// </summary>
        /// <returns>是否配置正确</returns>
        bool IsConfigured();
    }
} 